package com.VancouverTongue.bean;

import com.VancouverTongue.database.HelpObj;


///restarant add catergary in the constructor

public class Restaurant {

	// front end
	public int restaurantId;
	public String ownerId="";
	public String restaurantName="";
	public String phone="";
	public String streetName="";
	public String city="";
	public String website="";
	public String image="";
	public int descriptionId;
	public String description="";
	public int hourId;
	public int categoryCode;
	public String editdate="";
	
	

	public boolean reservation;
	public double rating;
	public boolean takeOut;

	public String businessHour;
	// data end

	
	

	public Restaurant() {
		this.ownerId = "erick";
	}

	public int getDescriptionId() {
		return descriptionId;
	}

	public void setDescriptionId(int descriptionId) {
		this.descriptionId = descriptionId;
	}

	public int getCategoryCode() {
		return categoryCode;
	}
	
	public String getEditdate() {
		return editdate;
	}

	public void setEditdate(String editdate) {
		this.editdate = editdate;
	}
	public void setCategoryCode(int categoryCode) {
		this.categoryCode = categoryCode;
	}

	public int getRestaurantId() {
		return restaurantId;
	}

	public void setRestaurantId(int restaurantId) {
		this.restaurantId = restaurantId;
	}

	public String getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(String ownerId) {
		this.ownerId = HelpObj.HTMLcheck(ownerId);
		this.ownerId = HelpObj.checkString(this.ownerId, 15);
	}

	public String getRestaurantName() {
		return restaurantName;
	}

	public void setRestaurantName(String restaurantName) {
		this.restaurantName = HelpObj.HTMLcheck(restaurantName);
		this.restaurantName = HelpObj.checkString(this.restaurantName, 65);
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = HelpObj.HTMLcheck(phone);
		this.phone = HelpObj.checkString(this.phone, 15);
	}

	public String getStreetName() {
		return streetName;
	}

	public void setStreetName(String streetName) {
		this.streetName = HelpObj.HTMLcheck(streetName);
		this.streetName = HelpObj.checkString(this.streetName, 65);
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = HelpObj.HTMLcheck(city);
		this.city = HelpObj.checkString(this.city, 20);
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = HelpObj.HTMLcheck(image);
		this.image = HelpObj.checkString(this.image, 200);
	}

	public boolean isReservation() {
		return reservation;
	}

	public void setReservation(boolean reservation) {
		this.reservation = reservation;
	}

	public double getRating() {
		return rating;
	}

	public void setRating(double rating) {
		this.rating = rating;
	}

	public boolean isTakeOut() {
		return takeOut;
	}

	public void setTakeOut(boolean takeOut) {
		this.takeOut = takeOut;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = HelpObj.HTMLcheck(description);
	}

	public String getBusinessHour() {
		return businessHour;
	}

	public void setBusinessHour(String businessHour) {
		this.businessHour = HelpObj.HTMLcheck(businessHour);
	}

	public int getDesctiptionId() {
		return descriptionId;
	}

	public void setDesctiptionId(int desctiptionId) {
		this.descriptionId = desctiptionId;
	}

	public int getHourId() {
		return hourId;
	}

	public void setHourId(int hourId) {
		this.hourId = hourId;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = HelpObj.HTMLcheck(website);
		this.website = HelpObj.checkString(this.website, 200);
	}
}
